#define _CRT_SECURE_NO_WARNINGS  1


#if 0


#include<stdio.h>
#include<string.h>

int main()
{
	char* s = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
	int i, c;
	/*while ((c = getchar()) != EOF)
	{
		for (i = 0; s[i] && s[i] != c; i++);
		if (s[i]) 
			putchar(s[i - 1]);
		else
			putchar(c);

	}*/
	for (i = 0; s[i]; i++)
		printf("%c ", s[i]);
	return 0;
}

#include<stdio.h>

int main()
{
	int i = 0;
	while (scanf("%d", &i) != EOF)
	{
		int j;
		for (j = 0; j * (j + 1) / 2 < i; j++);
		int dire = j;
		int gap = i - (j - 1) * j / 2 - 1;
		j++;

		int a, b;
		if (dire % 2 != 0)
		{
			a = j - 1, b = 1;
			while (gap--)
			{
				a--, b++;
			}
		}
		else
		{
			a = 1, b = j - 1;
			while (gap--)
			{
				a++, b--;
			}
		}

		printf("%d/%d\n", a, b);
	}

	return 0;
}

#endif // 0

#include<stdio.h>

int main() 
{
	int n = 0;
	while (scanf("%d",&n)!=EOF)
	{
		int k = 1, s = 0;
		for (;;)
		{
			s += k;
			if (s >= n)
			{
				printf("%d/%d\n", k - s + n, s - n + 1);
				break;
			}
			k++;
		}
	}

	return 0;
}